<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/15 0015
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>超时订单</title>

    <script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.5.1/jquery.min.js"></script>
    <script>
        $(document).ready(function(){
            $.ajax({
                type: "GET",
                url: "/order/getExpired",
                dataType: "json",
                success: function(data){
                    var s = '';
                    for (var i=0;i<data.length;i++){
                        var str = data[i].orderNo + '-' + data[i].amount;
                        str = '<li>' + str + '</li>';
                        s += str;
                    }
                    $("#list").html(s);

                },
                error:function(data){
                    alert("登录失败");
                }
            });
        })
    </script>

</head>
<body>
    <ul id="list">
        <li>1111</li>
    </ul>

</body>
</html>
